<?php
class yayasan_linkyoutube extends base_model
{
	function __construct()
	{
		parent::__construct();
		$this->init("yayasan_link_youtube","id_yayasanlinkyoutube","link_youtube");						
	}	
	
	function get_by_yayasan_id($id)
	{
		$rec = $this->db->select("*")->from($this->table_name)->where("id_yayasan",$id)->get();
		if($rec->num_rows()>0)
        {
            return $rec->result();
        }
        return FALSE;		
	}

}
?>